#ifndef PERSONDATACOLLECTOR_H
#define PERSONDATACOLLECTOR_H

#include <QDialog>

#include <person.h>

class QDialogButtonBox;
class QGridLayout;
class QLabel;
class QLineEdit;

class PersonDataCollector : public QDialog
{
public:
	explicit PersonDataCollector( QWidget *parent = NULL );
	Person getPerson();

signals:
	void accepted();
	void rejected();

private:
	void accept();
	void reject();

	Person m_person;
	QDialogButtonBox *m_pButtonBox;

	QLabel *m_pPersonIdLabel;
	QLabel *m_pPersonNameLabel;

	QLineEdit *m_pPersonIdText;
	QLineEdit *m_pPersonNameText;

	QGridLayout *m_pLayout;
};

#endif // PERSONDATACOLLECTOR_H
